<?php
// +----------------------------------------------------------------------
// | CatchAdmin [Just Like ～ ]
// +----------------------------------------------------------------------
// | Copyright (c) 2017~{$year} http://catchadmin.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt )
// +----------------------------------------------------------------------
// | Author: JaguarJack [ njphper@gmail.com ]
// +----------------------------------------------------------------------
// you should use `$router`
/* @var think\Route $router */
$router->group("basics", function () use($router) {
    // 港口 路由
    //列表
    $router->post('port/index', '\\catchAdmin\\basics\\controller\\Port@index');
    //新建
    $router->post('port/create', '\\catchAdmin\\basics\\controller\\Port@create');
    //更新
    $router->post('port/update', '\\catchAdmin\\basics\\controller\\Port@update');
    //删除
    $router->post('port/delete', '\\catchAdmin\\basics\\controller\\Port@delete');
    // 内部类型 路由
    //列表
    $router->post('insideType/index', '\\catchAdmin\\basics\\controller\\InsideType@index');
    //新建
    $router->post('insideType/create', '\\catchAdmin\\basics\\controller\\InsideType@create');
    //更新
    $router->post('insideType/update', '\\catchAdmin\\basics\\controller\\InsideType@update');
    //删除
    $router->post('insideType/delete', '\\catchAdmin\\basics\\controller\\InsideType@delete');
    // 业务类型 路由
    //列表
    $router->post('businessType/index', '\\catchAdmin\\basics\\controller\\BusinessType@index');
    //新建
    $router->post('businessType/create', '\\catchAdmin\\basics\\controller\\BusinessType@create');
    //更新
    $router->post('businessType/update', '\\catchAdmin\\basics\\controller\\BusinessType@update');
    //删除
    $router->post('businessType/delete', '\\catchAdmin\\basics\\controller\\BusinessType@delete');
    // 货币 路由
    //列表
    $router->post('currency/index', '\\catchAdmin\\basics\\controller\\Currency@index');
    //新建
    $router->post('currency/create', '\\catchAdmin\\basics\\controller\\Currency@create');
    //更新
    $router->post('currency/update', '\\catchAdmin\\basics\\controller\\Currency@update');
    //删除
    $router->post('currency/delete', '\\catchAdmin\\basics\\controller\\Currency@delete');
    // 汇率 路由
    //列表
    $router->post('rate/index', '\\catchAdmin\\basics\\controller\\Rate@index');
    //新建
    $router->post('rate/create', '\\catchAdmin\\basics\\controller\\Rate@create');
    //更新
    $router->post('rate/update', '\\catchAdmin\\basics\\controller\\Rate@update');
    //删除
    $router->post('rate/delete', '\\catchAdmin\\basics\\controller\\Rate@delete');
    // 公司 路由
    //列表
    $router->post('company/index', '\\catchAdmin\\basics\\controller\\Company@index');
    //新建
    $router->post('company/create', '\\catchAdmin\\basics\\controller\\Company@create');
    //更新
    $router->post('company/update', '\\catchAdmin\\basics\\controller\\Company@update');
    //删除
    $router->post('company/delete', '\\catchAdmin\\basics\\controller\\Company@delete');
    // 航线 路由
    //列表
    $router->post('route/index', '\\catchAdmin\\basics\\controller\\Route@index');
    //新建
    $router->post('route/create', '\\catchAdmin\\basics\\controller\\Route@create');
    //更新
    $router->post('route/update', '\\catchAdmin\\basics\\controller\\Route@update');
    //删除
    $router->post('route/delete', '\\catchAdmin\\basics\\controller\\Route@delete');
    //附加数据 路由
    //列表
    $router->post('adddata/index', '\\catchAdmin\\basics\\controller\\AddData@index');
    //新建
    $router->post('adddata/create', '\\catchAdmin\\basics\\controller\\AddData@create');
    //更新
    $router->post('adddata/update', '\\catchAdmin\\basics\\controller\\AddData@update');
    //删除
    $router->post('adddata/delete', '\\catchAdmin\\basics\\controller\\AddData@delete');
    //运输方式 路由
    //列表
    $router->post('transportmode/index', '\\catchAdmin\\basics\\controller\\TransportMode@index');
    //新建
    $router->post('transportmode/create', '\\catchAdmin\\basics\\controller\\TransportMode@create');
    //更新
    $router->post('transportmode/update', '\\catchAdmin\\basics\\controller\\TransportMode@update');
    //删除
    $router->post('transportmode/delete', '\\catchAdmin\\basics\\controller\\TransportMode@delete');
    //费用类型 路由
    //列表
    $router->post('expensetype/index', '\\catchAdmin\\basics\\controller\\ExpenseType@index');
    //新建
    $router->post('expensetype/create', '\\catchAdmin\\basics\\controller\\ExpenseType@create');
    //更新
    $router->post('expensetype/update', '\\catchAdmin\\basics\\controller\\ExpenseType@update');
    //删除
    $router->post('expensetype/delete', '\\catchAdmin\\basics\\controller\\ExpenseType@delete');
    //监管方式 路由
    //列表
    $router->post('supervisemode/index', '\\catchAdmin\\basics\\controller\\SuperviseMode@index');
    //新建
    $router->post('supervisemode/create', '\\catchAdmin\\basics\\controller\\SuperviseMode@create');
    //更新
    $router->post('supervisemode/update', '\\catchAdmin\\basics\\controller\\SuperviseMode@update');
    //删除
    $router->post('supervisemode/delete', '\\catchAdmin\\basics\\controller\\SuperviseMode@delete');
    //箱型 路由
    //新建
    $router->post('boxtype/create', '\\catchAdmin\\basics\\controller\\BoxType@create');
    //列表
    $router->post('boxtype/index', '\\catchAdmin\\basics\\controller\\BoxType@index');
    //更新
    $router->post('boxtype/update', '\\catchAdmin\\basics\\controller\\BoxType@update');
    //删除
    $router->post('boxtype/delete', '\\catchAdmin\\basics\\controller\\BoxType@delete');
    //国家 路由
    //新建
    $router->post('country/create', '\\catchAdmin\\basics\\controller\\Country@create');
    //列表
    $router->post('country/index', '\\catchAdmin\\basics\\controller\\Country@index');
    //更新
    $router->post('country/update', '\\catchAdmin\\basics\\controller\\Country@update');
    //删除
    $router->post('country/delete', '\\catchAdmin\\basics\\controller\\Country@delete');
    // 客户信息 路由
    //列表
    $router->post('provider/index', '\\catchAdmin\\basics\\controller\\Provider@index');
    //新建
    $router->post('provider/create', '\\catchAdmin\\basics\\controller\\Provider@create');
    //更新
    $router->post('provider/update', '\\catchAdmin\\basics\\controller\\Provider@update');
    //删除
    $router->post('provider/delete', '\\catchAdmin\\basics\\controller\\Provider@delete');
    // follow 路由
    $router->post('follow/index', '\\catchAdmin\\basics\\controller\\Follow@index');
    $router->post('follow/create', '\\catchAdmin\\basics\\controller\\Follow@create');
    $router->post('follow/update', '\\catchAdmin\\basics\\controller\\Follow@update');
    $router->post('follow/delete', '\\catchAdmin\\basics\\controller\\Follow@delete');
    // 公众号管理
    $router->get('official', 'catchAdmin\basics\controller\Official@index');
    $router->post('official', 'catchAdmin\basics\controller\Official@create');
    $router->put('official/:id', 'catchAdmin\basics\controller\Official@update');
    $router->delete('official/:id', 'catchAdmin\basics\controller\Official@delete');
    $router->post('official/remote/:id', 'catchAdmin\basics\controller\Official@remote');
    //公众号日志
    $router->get('officialLog', 'catchAdmin\basics\controller\OfficialLog@index');

    //新闻网管理
    $router->get('newsWebsite', 'catchAdmin\basics\controller\NewsWebsite@index');
    $router->put('newsWebsite/disOrEnable/:id', 'catchAdmin\basics\controller\NewsWebsite@disOrEnable');//禁用or启用




})->middleware('auth');
//查询港口
$router->post('basics/port/portIndex', '\\catchAdmin\\basics\\controller\\Port@portIndex');
//查询货币
$router->post('basics/currency/getCurrency', '\\catchAdmin\\basics\\controller\\Currency@getCurrency');
//查询全部费用类型代码
$router->post('basics/ExpenseType/getExpenseType', '\\catchAdmin\\basics\\controller\\ExpenseType@getExpenseType');
// 查询全部业务类型
$router->post('basics/businessType/getBusinessType', '\\catchAdmin\\basics\\controller\\BusinessType@getBusinessType');
// 查询内部类型
$router->post('basics/InsideType/getInsideType', '\\catchAdmin\\basics\\controller\\InsideType@getInsideType');
//查询客户供应商角色
$router->post('basics/provider/part', '\\catchAdmin\\basics\\controller\\Provider@part');
//查询客户信息
$router->post('basics/Provider/getProvider', '\\catchAdmin\\basics\\controller\\Provider@getProvider');
//查询其他信息
$router->post('basics/AddData/getOther', '\\catchAdmin\\basics\\controller\\AddData@getOther');
//获取汇率
$router->post('basics/rate/getRate', '\\catchAdmin\\basics\\controller\\Rate@getRate');
//获取跟进人
$router->post('basics/follow/getFollow', '\\catchAdmin\\basics\\controller\\Follow@getFollow');
//获取供应商-不分页
$router->get('basics/provider/getSupplier', '\\catchAdmin\\basics\\controller\\Provider@getSupplier');
//获取制造商-不分页
$router->get('basics/provider/getManufacturer', '\\catchAdmin\\basics\\controller\\Provider@getManufacturer');

$router->get('basics/adddata/getTreeData1', '\\catchAdmin\\basics\\controller\\AddData@getTreeData1');
$router->post('basics/adddata/fetchFileData', '\\catchAdmin\\basics\\controller\\AddData@fetchFileData');
$router->post('basics/adddata/ediDataReturn', '\\catchAdmin\\basics\\controller\\AddData@ediDataReturn');
$router->post('basics/adddata/filePathToDb', '\\catchAdmin\\basics\\controller\\AddData@filePathToDb');

//列表
$router->get('basics/officialTags', '\\catchAdmin\\basics\\controller\\OfficialTags@index');
//新建
$router->post('basics/officialTags', '\\catchAdmin\\basics\\controller\\OfficialTags@create');
//更新
$router->put('basics/officialTags', '\\catchAdmin\\basics\\controller\\OfficialTags@update');
//删除
$router->delete('basics/officialTags', '\\catchAdmin\\basics\\controller\\OfficialTags@delete');


// 微信登录相关路由
$router->get('basics/officialLog/checkLoginStatus', '\\catchAdmin\\basics\\controller\\OfficialLog@checkLoginStatus');
$router->post('basics/officialLog/getLoginQrcode', '\\catchAdmin\\basics\\controller\\OfficialLog@getLoginQrcode');
$router->post('basics/officialLog/checkScanStatus', '\\catchAdmin\\basics\\controller\\OfficialLog@checkScanStatus');